<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Gloze: com.hp.gloze.Gloze Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Gloze
   &#160;<span id="projectnumber">1.01-beta2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>com</b>      </li>
      <li class="navelem"><b>hp</b>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1hp_1_1gloze.html">gloze</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.hp.gloze.Gloze Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="com::hp::gloze::Gloze" -->
<p><a href="classcom_1_1hp_1_1gloze_1_1_gloze-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a1baa43e23eabc27283a8d41041e23b50">Gloze</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a7ad809006ee768f2938aabf10efe9f26">Gloze</a> (boolean silent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#ad81afee66006cc4229a75296ce365aa8">Gloze</a> (URL schemaLocation, URI targetNS)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a89bab13ce337f1d674204631e220898e">Gloze</a> (URL[] schemaLocation, URI[] targetNS)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#acb73c06c06a33a44cbaa0e846c76fd33">xml_to_rdf</a> (File source, File target, URI base, Model model)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#afb5f6d01b6ac4f73b37a7c38982b6244">rdf_to_xml</a> (File source, File target, URI base, Model model)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OntModel&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a9db17584be845f2055b8d8895f0f7f29">xsd_to_owl</a> (File source, String base)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a772e519e007a8d678dee15a1f0128e40">lift</a> (Document xml, URL url, URI base)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a18b281e8a93da94ddd22666333cf0f06">lift</a> (Document xml, URL url, URI base, Model model)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#afadb6872a06d0ae277b0605ea7a45084">drop</a> (Model model, URI uri)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a922d878145fee8de5841693ebd3cbf42">drop</a> (Resource resource)  throws Exception </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static schema&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#ab90f0fa4ae77452d28c46cd45a083b44">loadSchema</a> (URL url)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#ac68dbbdb47a624bd15475e0e05f428d8">clearCache</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static schema&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a215a61b8702140cb4f342140f87bf963">getCachedSchema</a> (String namespace)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static schema&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a02aace1b3f879b77a6ebf2b14c72dac9">initSchema</a> (URI namespace, URL url, Map&lt; URL, schema &gt; schemaMap)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static schema&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#a58ae2633f0436da4c607a6571a2faa81">initSchemaXSI</a> (Element element, URL location, String defaultNS, Map&lt; URL, schema &gt; schemaMap)  throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static schema&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#ae82f468c04ca83a5f72c6b7570ed804e">initSchemaLocation</a> (URI namespace, URL schemaLocation, String defaultNS, Map&lt; URL, schema &gt; schemaMap)  throws Exception, URISyntaxException </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html#af78268830634f6069e1ab4733bb974d3">main</a> (String args[])</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The programmatic interface for <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a>. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1baa43e23eabc27283a8d41041e23b50"></a><!-- doxytag: member="com::hp::gloze::Gloze::Gloze" ref="a1baa43e23eabc27283a8d41041e23b50" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.hp.gloze.Gloze.Gloze </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create an instance of <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a>. </p>

</div>
</div>
<a class="anchor" id="a7ad809006ee768f2938aabf10efe9f26"></a><!-- doxytag: member="com::hp::gloze::Gloze::Gloze" ref="a7ad809006ee768f2938aabf10efe9f26" args="(boolean silent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.hp.gloze.Gloze.Gloze </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>silent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct an instance of <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a>. If no target is provided then the output is normally written to the console. This constructor provides the option to silence this output, and is useful for test purposes. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">silent</td><td>: boolean disables output where no target is supplied </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad81afee66006cc4229a75296ce365aa8"></a><!-- doxytag: member="com::hp::gloze::Gloze::Gloze" ref="ad81afee66006cc4229a75296ce365aa8" args="(URL schemaLocation, URI targetNS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.hp.gloze.Gloze.Gloze </td>
          <td>(</td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>schemaLocation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>targetNS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct an instance of <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> for a schema with the given target namespace.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">schemaLocation</td><td>: URL </td></tr>
    <tr><td class="paramname">targetNS</td><td>: URI </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a89bab13ce337f1d674204631e220898e"></a><!-- doxytag: member="com::hp::gloze::Gloze::Gloze" ref="a89bab13ce337f1d674204631e220898e" args="(URL[] schemaLocation, URI[] targetNS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.hp.gloze.Gloze.Gloze </td>
          <td>(</td>
          <td class="paramtype">URL[]&#160;</td>
          <td class="paramname"><em>schemaLocation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI[]&#160;</td>
          <td class="paramname"><em>targetNS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct an instance of <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> given multiple schema locations and target namespaces.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">schemaLocation</td><td>: array of URLs </td></tr>
    <tr><td class="paramname">targetNS</td><td>: array of URIs </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac68dbbdb47a624bd15475e0e05f428d8"></a><!-- doxytag: member="com::hp::gloze::Gloze::clearCache" ref="ac68dbbdb47a624bd15475e0e05f428d8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void com.hp.gloze.Gloze.clearCache </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clear the static cache. </p>

</div>
</div>
<a class="anchor" id="afadb6872a06d0ae277b0605ea7a45084"></a><!-- doxytag: member="com::hp::gloze::Gloze::drop" ref="afadb6872a06d0ae277b0605ea7a45084" args="(Model model, URI uri)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document com.hp.gloze.Gloze.drop </td>
          <td>(</td>
          <td class="paramtype">Model&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>uri</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Drop RDF model into XML (starting with named resource). The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">model</td><td>containing the RDF meta-data </td></tr>
    <tr><td class="paramname">uri</td><td>the (named) root of the XML output </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>XML Document </dd></dl>

</div>
</div>
<a class="anchor" id="a922d878145fee8de5841693ebd3cbf42"></a><!-- doxytag: member="com::hp::gloze::Gloze::drop" ref="a922d878145fee8de5841693ebd3cbf42" args="(Resource resource)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document com.hp.gloze.Gloze.drop </td>
          <td>(</td>
          <td class="paramtype">Resource&#160;</td>
          <td class="paramname"><em>resource</em></td><td>)</td>
          <td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Drop RDF resource into XML. The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">resource</td><td>resource representing the root of the XML document </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>XML Document </dd></dl>

</div>
</div>
<a class="anchor" id="a215a61b8702140cb4f342140f87bf963"></a><!-- doxytag: member="com::hp::gloze::Gloze::getCachedSchema" ref="a215a61b8702140cb4f342140f87bf963" args="(String namespace)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static schema com.hp.gloze.Gloze.getCachedSchema </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>namespace</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get a schema from the static cache. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">namespace</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>schema instance </dd></dl>

</div>
</div>
<a class="anchor" id="a02aace1b3f879b77a6ebf2b14c72dac9"></a><!-- doxytag: member="com::hp::gloze::Gloze::initSchema" ref="a02aace1b3f879b77a6ebf2b14c72dac9" args="(URI namespace, URL url, Map&lt; URL, schema &gt; schemaMap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static schema com.hp.gloze.Gloze.initSchema </td>
          <td>(</td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>namespace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Map&lt; URL, schema &gt;&#160;</td>
          <td class="paramname"><em>schemaMap</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initialise a gloze instance with a schema given its URL and target namespace. The schemaMap is updated with the new mapping. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">namespace</td><td>: URI </td></tr>
    <tr><td class="paramname">url</td><td>: schema location URL </td></tr>
    <tr><td class="paramname">schemaMap</td><td>: Maps schema location to schema instance </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae82f468c04ca83a5f72c6b7570ed804e"></a><!-- doxytag: member="com::hp::gloze::Gloze::initSchemaLocation" ref="ae82f468c04ca83a5f72c6b7570ed804e" args="(URI namespace, URL schemaLocation, String defaultNS, Map&lt; URL, schema &gt; schemaMap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static schema com.hp.gloze.Gloze.initSchemaLocation </td>
          <td>(</td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>namespace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>schemaLocation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>defaultNS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Map&lt; URL, schema &gt;&#160;</td>
          <td class="paramname"><em>schemaMap</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception, URISyntaxException <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add the schema, with given namespace and location, to the schema map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">namespace</td><td>: the preferred namespace </td></tr>
    <tr><td class="paramname">schemaLocation</td><td></td></tr>
    <tr><td class="paramname">defaultNS</td><td>: used if no namespace is supplied </td></tr>
    <tr><td class="paramname">schemaMap</td><td>: updated with the new schema mapping </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>schema instance </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
    <tr><td class="paramname">URISyntaxException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a58ae2633f0436da4c607a6571a2faa81"></a><!-- doxytag: member="com::hp::gloze::Gloze::initSchemaXSI" ref="a58ae2633f0436da4c607a6571a2faa81" args="(Element element, URL location, String defaultNS, Map&lt; URL, schema &gt; schemaMap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static schema com.hp.gloze.Gloze.initSchemaXSI </td>
          <td>(</td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>element</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>location</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>defaultNS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Map&lt; URL, schema &gt;&#160;</td>
          <td class="paramname"><em>schemaMap</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initialise schema from schema location(s) defined in an xml element (typically the document element or an element corresponding to an xs:any wild-card). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">element</td><td>: potentially containing a schemaLocation </td></tr>
    <tr><td class="paramname">location</td><td>: URL of this XML document. </td></tr>
    <tr><td class="paramname">defaultNS</td><td>used instead of the schema URL. </td></tr>
    <tr><td class="paramname">schemaMap</td><td>maps schema location to schema instance. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a772e519e007a8d678dee15a1f0128e40"></a><!-- doxytag: member="com::hp::gloze::Gloze::lift" ref="a772e519e007a8d678dee15a1f0128e40" args="(Document xml, URL url, URI base)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Model com.hp.gloze.Gloze.lift </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>xml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>recommended programmatic interfaces Lift XML (document) into RDF metadata, creating a new model. The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">xml</td><td>input document to lift </td></tr>
    <tr><td class="paramname">url</td><td>location of the input document (required for relative schema location) </td></tr>
    <tr><td class="paramname">base</td><td>: URI of the input document base </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>model </dd></dl>

</div>
</div>
<a class="anchor" id="a18b281e8a93da94ddd22666333cf0f06"></a><!-- doxytag: member="com::hp::gloze::Gloze::lift" ref="a18b281e8a93da94ddd22666333cf0f06" args="(Document xml, URL url, URI base, Model model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.hp.gloze.Gloze.lift </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>xml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Model&#160;</td>
          <td class="paramname"><em>model</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Lift XML (document) into RDF metadata, adding to existing model. The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">xml</td><td>input document </td></tr>
    <tr><td class="paramname">url</td><td>location of the input document (required for resolving relative schema location) </td></tr>
    <tr><td class="paramname">base</td><td>: URI of input document base </td></tr>
    <tr><td class="paramname">model</td><td>output model </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>boolean indicating success or failure. </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab90f0fa4ae77452d28c46cd45a083b44"></a><!-- doxytag: member="com::hp::gloze::Gloze::loadSchema" ref="ab90f0fa4ae77452d28c46cd45a083b44" args="(URL url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static schema com.hp.gloze.Gloze.loadSchema </td>
          <td>(</td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td>  throws Exception <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Load schema with URL into a static cache. The schema is not associated with a gloze instance. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>: schema URL </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>schema instance </dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af78268830634f6069e1ab4733bb974d3"></a><!-- doxytag: member="com::hp::gloze::Gloze::main" ref="af78268830634f6069e1ab4733bb974d3" args="(String args[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void com.hp.gloze.Gloze.main </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>args</em>[]</td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> main program. The main input parameter is XML to lift or RDF to drop. This is followed by an (optional) sequence of targetNamespace schemaLocation pairs, followed by a single (optional) no-namespace schema location. </p>

</div>
</div>
<a class="anchor" id="afb5f6d01b6ac4f73b37a7c38982b6244"></a><!-- doxytag: member="com::hp::gloze::Gloze::rdf_to_xml" ref="afb5f6d01b6ac4f73b37a7c38982b6244" args="(File source, File target, URI base, Model model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document com.hp.gloze.Gloze.rdf_to_xml </td>
          <td>(</td>
          <td class="paramtype">File&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">File&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Model&#160;</td>
          <td class="paramname"><em>model</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Drop RDF metadata into XML (given source and target files). The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. The model should be initialised with a prefix map used to define define xml namespaces. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>RDF </td></tr>
    <tr><td class="paramname">target</td><td>file </td></tr>
    <tr><td class="paramname">base</td><td>URI for XML </td></tr>
    <tr><td class="paramname">model</td><td>containing a prefix map. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>XML document </dd></dl>

</div>
</div>
<a class="anchor" id="acb73c06c06a33a44cbaa0e846c76fd33"></a><!-- doxytag: member="com::hp::gloze::Gloze::xml_to_rdf" ref="acb73c06c06a33a44cbaa0e846c76fd33" args="(File source, File target, URI base, Model model)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.hp.gloze.Gloze.xml_to_rdf </td>
          <td>(</td>
          <td class="paramtype">File&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">File&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">URI&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Model&#160;</td>
          <td class="paramname"><em>model</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Lift XML to RDF metadata (given source and target files). The <a class="el" href="classcom_1_1hp_1_1gloze_1_1_gloze.html">Gloze</a> instance should be pre-initialised with the relevant XML schema. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>document </td></tr>
    <tr><td class="paramname">target</td><td>file </td></tr>
    <tr><td class="paramname">base</td><td>of the XML document </td></tr>
    <tr><td class="paramname">model</td><td>for the RDF </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9db17584be845f2055b8d8895f0f7f29"></a><!-- doxytag: member="com::hp::gloze::Gloze::xsd_to_owl" ref="a9db17584be845f2055b8d8895f0f7f29" args="(File source, String base)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OntModel com.hp.gloze.Gloze.xsd_to_owl </td>
          <td>(</td>
          <td class="paramtype">File&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws Exception </td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Lift XML schema to OWL ontology. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>schema </td></tr>
    <tr><td class="paramname">base</td><td>of the ontology </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>ontology </dd></dl>

</div>
</div>
</div>


<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 15 2011 22:13:50 for Gloze by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
